<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/pages/common/header.jsp"%>
<title>字典表</title>
</head>
<body>
	<div class="contentBody contentborder">
		<div class="tab-pane" id="tabPane">
			<div id="message">${message}</div>
			<div class="tab-page" id="tabPage1">
				<h1 class="tab">字典表配置</h1>
				<div class="contentborder tableForm">
					<jdf:form bean="entity" scope="request">
						<form action="<%=dynamicDomain%>/dict/save" method="post">
							<input type="hidden" name="id">
							<input type="hidden" name="type">
							<input type="hidden" name="objectId">
							<table class="inputTable">
							    <tr>
									<td class="label cancelBorderLeft">
										<label for="dictionaryId">字典ID：</label>
									</td>
									<td class="content">
										<input type="text" name="dictionaryId"/>
									</td>
									<td class="label">
										<label for="name">字典名称：</label>
									</td>
									<td class="content">
										<input type="text" name="name">
									</td>
								</tr>
								<tr>
									<td class="label cancelBorderLeft">
										<label for="value">字典值：</label>
									</td>
									<td class="content">
										<input type="text" name="value">
									</td>
									<td class="label cancelBorderLeft">
										<label for="sortId">顺序：</label>
									</td>
									<td class="content">
										<input type="text" name="sortId">
									</td>
								</tr>
								<tr>
									<td class="label cancelBorderLeft">
										<label for="parentId">父ID：</label>
									</td>
									<td class="content">
										<input type="text" name="parentId">
									</td>
									<td class="label">
                                        <label for="status">状态：</label>
                                    </td>
                                    <td class="content">
                                       <select name="status">
                                            <option value="">请选择</option>
                                            <jdf:select dictionaryId="111"/>
                                        </select>
                                    </td>
								</tr>
								<tr>
									<td class="label">
										<label for="remark">备注：</label>
									</td>
									<td class="content" colspan="3">
										<textarea rows="10" cols="65" name="remark"></textarea>
									</td>
								</tr>
								<tr>
									<td class="bottomLabel" colspan="4">
										<div class="right">
											<button type="submit">提交</button>
											<c:if test="${not empty message}">
											<button type="button" onclick="toUrl('<%=dynamicDomain%>/dict/create')">继续增加</button>
											</c:if>
											<button type="button" onclick="toUrl('<%=dynamicDomain%>/dict/page')">返回</button>
										</div>
									</td>
								</tr>
							</table>
						</form>
					</jdf:form>
				</div>
			</div>
		</div>
	</div>
	<jdf:tableLabelValidate domain="Dictionary"/>
</body>
</html>